package org.grayrabbit.cms.entity;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "CMS_CONTENT")
@DiscriminatorValue("SoftwareContent")
public class SoftwareContent extends Content implements java.io.Serializable{

	private static final long serialVersionUID = 4551620951550186077L;
	
	private String softwareType;
	private String softwareAuth;
	private String softwareEnv;
	private String softwareLanguage;
	private String softwareLevel;
	private String softwarePic;
	private Integer softwareScore;
	
	public SoftwareContent(){};
	
	@Column(name = "SOFTWARE_TYPE", length = 32)
	public String getSoftwareType() {
		return this.softwareType;
	}

	public void setSoftwareType(String softwareType) {
		this.softwareType = softwareType;
	}

	@Column(name = "SOFTWARE_AUTH", length = 256)
	public String getSoftwareAuth() {
		return this.softwareAuth;
	}

	public void setSoftwareAuth(String softwareAuth) {
		this.softwareAuth = softwareAuth;
	}

	@Column(name = "SOFTWARE_ENV", length = 256)
	public String getSoftwareEnv() {
		return this.softwareEnv;
	}

	public void setSoftwareEnv(String softwareEnv) {
		this.softwareEnv = softwareEnv;
	}

	@Column(name = "SOFTWARE_LANGUAGE", length = 64)
	public String getSoftwareLanguage() {
		return this.softwareLanguage;
	}

	public void setSoftwareLanguage(String softwareLanguage) {
		this.softwareLanguage = softwareLanguage;
	}

	@Column(name = "SOFTWARE_LEVEL", length = 32)
	public String getSoftwareLevel() {
		return this.softwareLevel;
	}

	public void setSoftwareLevel(String softwareLevel) {
		this.softwareLevel = softwareLevel;
	}

	@Column(name = "SOFTWARE_PIC", length = 2000)
	public String getSoftwarePic() {
		return this.softwarePic;
	}

	public void setSoftwarePic(String softwarePic) {
		this.softwarePic = softwarePic;
	}

	@Column(name = "SOFTWARE_SCORE", precision = 6, scale = 0)
	public Integer getSoftwareScore() {
		return this.softwareScore;
	}

	public void setSoftwareScore(Integer softwareScore) {
		this.softwareScore = softwareScore;
	}

	@Transient
	public String getContextType() {
		return "SoftwareContent";
	}
	

}
